package com.example.demo.react;

public class RegularPrice implements Price {

    @Override
    public int getPriceCode() {
        return Movie.REGULAR;
    }

    @Override
    public double getCharge(int dayRented) {
        int thisAmount = 2;
        thisAmount += (dayRented - 2) * 1.5;
        return thisAmount;
    }
}
